<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
			
		<title>后台页面的布局</title>
		<!-- 导入 jquery 核心类库 -->
	<script type="text/javascript" src="../js/jquery-1.8.3.js" ></script>
	<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js" ></script>
	<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js" ></script>
	<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
	<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
	<!--
    	引入ztree
    -->
	<script src="../js/ztree/jquery.ztree.all-3.5.js"></script>
	<link rel="stylesheet" href="../js/ztree/zTreeStyle.css" />
	
	
	
	<script>
		$(function(){
			
				//开启简单的数据格式
				var setting={
					data:{
						simpleData:{
							enable:true
						}
					}
				};
				// 编写树形菜单
				// 简单的json数据
				var zNodes=[
					{id:1,pId:0,name:("父节点一")},
					{id:2,pId:0,name:("父节点二")},
					{id:12,pId:1,name:("子节点一")},
					{id:13,pId:1,name:("子节点二")},
					{id:14,pId:1,name:("子节点三")},
					{id:21,pId:2,name:("子节点一")},
					{id:22,pId:2,name:("子节点二")}
				]
			
			// 标准的json数据格式
			/*var zNodes=[
			
			{name:"父节点一",children:[
			{name:"子节点1"},
			{name:"子节点2"}			
			]},
			
			
			{name:"父节点二",children:[
			{name:"子节点1"},
			{name:"子节点2",children:[
			{name:"子节点22"},
			{name:"子节点23",children:[
			{name:"子节点31"},
			{name:"子节点32"}			
			]}
			]}
			]}			
			]*/
			
			//生成树形菜单
			//$.fn.ztree.init($("#baseMenu"),setting,zNodes);
			$.fn.zTree.init($("#baseMenu"), setting, zNodes);
			
		
			
		
			
	
		
		});
		
		
	</script>
	
	
<body class="easyui-layout"> 

<div data-options="region:'north',title:'North Title',split:true" style="height:100px;">上部</div> 

<div data-options="region:'south',title:'South Title',split:true" style="height:100px;">下部</div> 

<div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;">
	西部
	
</div> 

<div data-options="region:'west',title:'菜单',split:true" style="width:180px;">
	<!-- -->	
	<div class="easyui-accordion" style="width:300px;height:200px;" data-options="fit:true" > 
 
		<div data-options="title:'基础数据'" >
		<ul id="baseMenu" class="ztree" ></ul>
		</div>
		
		<div data-options="title:'系统数据'">面板二</div>
		
		
	</div>
	
	
	
</div> 

<div data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;">
	<!--
    	添加选项卡
    -->
	<div id="tabs1" class="easyui-tabs" data-options="fit:true">
		<div data-options="title:'百度',closable:true"> 选项卡一 </div>
		<div data-options="title:'谷歌',closable:true"> 选项卡二 </div>
		
		
	</div>
	
</div> 

</body> 

 


</html>
